package com.mc.service.impl;

import com.mc.bean.Grade;
import com.mc.dao.GradeDao;
import com.mc.dao.Impl.GradeDaoImpl;
import com.mc.service.GradeService;

import java.util.List;

/**
 * @author zh
 * 年级实体类业务逻辑接口实现
 */
public class GradeServiceImpl implements GradeService {
    GradeDao gradeDao=new GradeDaoImpl();
    @Override
    public List<Grade> findAll() {
        return gradeDao.findAll();
    }

    @Override
    public Grade findByGid(int gid) {
        return gradeDao.findByGid(gid);
    }
}
